cargo package: overwrite existing tarballs
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>
Tue, 5 Jul 2016 19:32:04 +0000 (21:32 +0200)
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>
Wed, 6 Jul 2016 00:19:10 +0000 (02:19 +0200)
commit18bf06d3a46af7bfc02698f75562699dc7f8f0ec
treed6e96f3997b6181ad1d817b4ee8a7c0a63fe5e6c
parentb036f1963c6fdf2ec70f1fdb49df1e44e17f964f
cargo package: overwrite existing tarballs

Previously, cargo package did not do anything if a tarball already
existed. This is wrong, because the source may have changed and cargo
does not do any dependency tracking for package tarballs yet, so it did
not notice this.

This commit changes cargo package to always overwrite existing tarballs,
which works fine until proper dependency tracking is implemented.

Fixes #2799
src/cargo/ops/cargo_package.rs
tests/package.rs